<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script>
var str='12 fff 87 er334 233 -=-=fa80';

alert(str.match(/\d+/g));
</script>
</head>

<body>
</body>
</html>
